//
//  CTView.h
//  CTView
//
//  Created by 王欣 on 2018/1/19.
//  Copyright © 2018年 北大方正电子有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CTView : UIView

@property (nonatomic, strong) NSAttributedString * attributeStr;
@property(nonatomic,assign)CGFloat  fontSize;//字体大小
@property(nonatomic,assign)CGFloat  lineGap;//行间距
@property(nonatomic,assign)CGFloat  knerGap;//字间距
@property(nonatomic,strong)UIColor  * fontColor;//字体颜色
@property(nonatomic,  copy)NSString * text;
@property(nonatomic,assign)BOOL verticalForm;
+(CGFloat)returnTextWidthWith:(NSString*)str lineGap:(CGFloat)lineGap knetGap:(CGFloat)knerGap fonSize:(CGFloat)fontSize MaxHeight:(CGFloat)height;
+(CGFloat)returnSingleLineTextHeight:(NSString*)str lineGap:(CGFloat)lineGap knetGap:(CGFloat)knerGap fonSize:(CGFloat)fontSize MaxHeight:(CGFloat)height;
@end
